package menu

import (
	"github.com/gogf/gf/v2/frame/g"
)

//func fileServer(msg *widget.Entry) {
func fileServer() {
	s := g.Server()
	s.AddStaticPath("", ".")
	s.SetPort(8088)
	s.SetIndexFiles([]string{"a.mp4"})
	// buffer := bytes.NewBuffer(nil)
	// s.Logger().SetWriter(buffer)
	// msg.SetText(buffer.String())
	s.Run()
}
